<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/templates/common/taglib.jsp"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta charset="utf-8">
    <title>${title}</title>
 
    <%@include file="/WEB-INF/templates/common/common.jsp"%>
    <link href="${basePath}/static/css/FilePicture_Manage.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="file_manage" style="min-width:1120px;width:80%;">
    <div class="file_title">
        <h3>打印记录&gt;打印详情</h3>
        <ul style="width:auto;">
          <!--   <li><a>保存</a></li> -->
            <li><a href="javascript:confirmBox()" id="closeBtn2">关闭</a></li>
        </ul>
    </div>
    <div class="file_content"  style="min-width:830px;width:75%;">
        <div class="file_header" style="width:100%;">
            <div class="left">文件信息</div><div class="right">文件总数：<span id="totalPage">${totalPage}</span><span>个</span></div>
        </div>
        <div class="filePage" id="filepage" style="width:100%;">
            <ul>
            <c:forEach items="${printRecordImgList}" var="printImg" varStatus="index">
                <li data-filename="1" style="min-width:680px;width:80%;">
                    <img src="${picHostPath}${printImg.filePath}" alt=""/>
                   <!--  <span class="del" title="删除该图片">X</span> -->
                </li>
            </c:forEach>
            </ul>
        </div>
    </div>
    <div class="file_table" style="min-width:270px;width:25%;">
        <p class="line">姓    　名: <span>${medicalPrint.name}</span></p>
        <p class="line">身份证号: <span>${medicalPrint.idNumber}</span></p>
        <p class="line">病  案  号: <span>${medicalPrint.mrId}</span></p>
		<p class="line">打印页数: <span>${medicalPrint.printNum}</span></p>
        <p class="line">打印时间: <span>${medicalPrint.printTime}</span></p>
       <p class="line">打  印  人: <span>${medicalPrint.printMan}</span></p> 
       <!--  <p class="button">
            <label for="uploadFile">添加文件</label>
            <input type="file" id="uploadFile" onchange="Addfile()" name="file" style="display:none" multiple/>
            <span id="files" style="margin-left:90px;display:none">已选择<i id="total"></i>个文件</span>
        </p> -->
    </div>
</div>
<!--JS部分-->
<script type="text/javascript" src="${basePath}/static/layer/layer.js"></script>
<link href="${basePath}/static/layer/layer_style.css" rel="stylesheet" type="text/css">
<script>
    $(function(){
        //删除图片事件
        $(".del").on("click",function(){
            if(confirm("确定删除此图片吗？")) {
                $(this).parents("li").remove();
            }
        });

    })
    function confirmBox(){
   		layer.confirm('确认关闭吗？',{
   			btn:['关闭','取消']
   		},function(){
   			window.close();
   		},
   		function(){
   			return;
   		});
    }
    //增加文件
/*    function Addfile(){
       var files=$("#uploadFile").get(0).files;
       var length=files.length;
       $("#total").html(length);
       $("#files").css("display","block");
   } */
</script>
</body>
</html>